adding mpi support