hosts file reading implemented