create a reference to the stream so we can check its status later