add more debugging print statements