added a couple helper functions to messages (only one's implemented)