app crash fixes and stability