working version of chat message history, and chat aggregated history