ported fromHTTPStream to new block format