update autosave and read from file