add file by closing the app