rewrite so it only send res.end() on stream 'end' event
update to v0.1.4