changed the connect script