opcode and processing bug fixes