added main thread to check opcode in each line