stream reader wrapper for data_stream