getting autosaving working