implement cdn switch
add config file