use temporary location for temporary files, and ask to save file before quitting