resolving worked based on nextWorkerIndex
Merge pull request #1 from chico/worker-index

resolving worked based on nextWorkerIndex