small bug in previous... didn't actually use the more carefully constructed port information