handle revisions