s3 production environment fix