tried adding debugging print statements