reputation now stores with chats. switching chatrooms array and chat_index to globals