#339 #338 initial checkin for chats history