simplified parse_list() to be a bit more useful (for hostnames, ports, etc)