this is only needed for S3 (production and staging)