MVP commit of get_ports(), ht ankit