adding connect_to_network