bug fix again to make the preload work in hosts.js