added paging support for messages, still waiting on github issue to go further