various improvements, autosaving, sanitizing, chat