more debugging added