used new tp_op_ops: removed most switches in tpop