check whether MPI has been initalized before trying
handle token passing correctly when there is one process