open the stream