mpi direcotry handling bugs resolution