retrieve messages and read message