trying to fix pcat_interface.py