slight update of matchcat.py