add autosave feature and modify some plugin