improve hosts.txt loading