changed how domain name gets parsed