add support for saving settings by lua command (server doesn't autosave on exit)