apply new method to generate hosts data file with new module files