enchanced the connect command