refine HostsFilter