document the stream