adding functionality to post messages