second attempt at S3 config