for server: multi doc update document if it exists