added --rev option