add configuration file support to ConnectCommand (without unit tests)