fixed use of S3Client's factory