updated msg module to only pack and unpack messages instead of sending them