some changes in host.js