fix for 'connect' command