fixes s3 upload and adds cloudfront