updated ssl check