use refcounting for netaddr
populate topology set
get rid of useless refcounting
consolidate debug output