use inputTransformer and outputTransformer