create pool right before using

makes sure the generator object is up to date in worker processes