augmented --seprepair option in gather.py