added more debugging stuff