changes to avoid use of node.js