utilized logic to determine default network interface in other places