handle chunked responses (not tested)