modified gather.py to account for --rev option