Bugfix: forgot to set b.mask
ported fromHTTPStream to new block format
merging