better port comparisons