added some more functions to work with the message