code gardening (DRY)
connect to the network