s3: adapted to new HttpClient