migrated to using node.js queue