add connect check