removed unused files, parallelized the hostState lookup