updated for ipv6