preparation for timeout,connect type selection