debug mode for hard-wiring, fixed typo in debug