update dependencies
unpause & end the stream instead of writing directly