added CDN support