add the connect check