add chat server functionality