add more debugging to find problem