align to node.js api