hacking of implementation of DIRECT in node.js