remove DebugConsole refs from templates