fixed thread count logic
node version