refactored readStream and liveStream into separate streams