changing code to adapt new whois library