added cdn support