add stream handler
add test using stream handler
Merge pull request #8 from nulltask/feature/stream-handler

add stream handler