added --rev option to gather.py