modified extract_utils.py to accomodate --rev option