removed last references to global debug mode