fix missing NAME
iterate over network names and IPs instead of specifying public/private