document syncing protocol