save files on application restart