versioning revisions number should be calculated properly because revision documents might be replicated