Project main file, added error on invalid trace_op, default for switch.