add some debugging stuff