prepare for Node.js implementation