add cdv and https compatible