connecting to the network