work cleanly with read-stream and readable-stream
Merge pull request #5 from Raynos/read-stream

work cleanly with read-stream and readable-stream