refine extend_iplist