whois function slightly changed