added support for using cloudfront