added mpi switch