removed deprecated debug_hooks control and functions