various hacks in node.js