adding more debugging logging