resolved some of the previous brute force haxxes used to preserve memory in MPI communication