updated to use s3