detect Connection