monkey patch to support IPv6