do not assume the location url has 3 parts in the hostname