adding console and debugger checks