improve MtContextTransformer