fix wrong function for getting central hostname