adds the debugging stuff