be robust to different hostnames