simplify listening_ports