modified for easy deployment in CDN network