added more debugging.