add stream support
Merge pull request #4 from contra/master

add stream support