add support for parsing chunked data on read