debugging 'get_network_segment'