added optional CDN support for #408