fixes for mpi worker