MC-11 #done it was the debug statement that was kiling it and the type
error was debug was undefined