fix the exposed_get_network_interface function