updated chat message loading and processing