cleaned up found_ports logic