lib/stream now creates output read stream