only raise an error if there's more than host in locations