complete rewrite of write-stream. much simpler now
use report api in tests
remove unused deps