removed some debug code, thread shuffling is andom to help with load
balancing