changing range header parsing to parsing offset