fixes for mpi
updates for the shelf files