moved the autosave data into globals