add a global debug variable that can be set to true for this to print out