implement parse_port and parse_port_range