make the S3 endpoint configurable