add Transformer, a class that behaves like StreamEventTransformer