move the chunk generation into _run to be sure it happens on the other process