handle gzip encoded responses