added a DEBUG_PRINT mode that only enables printing, with no other debug code