adding autosave stuff