change document_save and document_change_real to async