added some more debugging