add persistence to chat.