added some debugging stuff