added functionality to execute with MPI if it is available