add interface for fetching messages