fixed minor issues with the mpi version