added: stop searching if get N empty queries in a row. also add a check for MaxConnectMins < MinConnectMins