[TH] clean up debugging entry point