v2.0.x: stream reading tools refactor