add ability to autosave and autodelete