added more debugging