added loosely ssl check due to many complains