removed unused port_end