done seg_ports, now got to test