added more debugging information