https check added