make stream more like IO