add a bunch of debugging stuff