replace event-stream.map with map-stream