retrive and post messages