add https check