updated to use node-engine