supporting host.js everywhere