move enum TermOp to outer