added autosave

god help us all
syntax errors hurt