fixed build
fixed issues with char logging
added more use of DEFINE_OPCODE_HANDLER usage