added more debugging info