moving the debug utils to the header file