handle revisions
Merge pull request #107 from ihptru/master

handle revisions