migration to node.js solution