minor updates to match.py