using Enum class for OPCODE now

the dict could move to a more convenient place too