probably fixes matthew's problem. Removes stray debug code