add more functions to chat_server.js