version check added for document update call, which should prevent from silently overriding changes to a document when 2 simultaneus update calls run