modify everything messages to be pointers instead of copies