added get messages methods