set hostnames correctly