add connect detect