remove debugging hook