connect to the machine first