better handling of MPIPool