added https check