handle revisions

fixes #97;