modify the connect autimatically