minor modifications for autosave.
more early changes to autosave functionality