better division into chunks, now does not hang any more when one node is idle