use pipe to stream.