added an mpigetrank to new file schedule