backend for draft autosaving