clean up some debug code