added GetMessages