minor change in gen_ip_list