added IPV6 support