set up the auto-save and backup