removed obsolete debugger statements or replaced them with dbgOn