update doc manually on save (doc.update has been removed)