save file to home directory and use it when no Internet connection