give --hostname preference over all else