add interface for get all messages