added methods to post and get message