initial implementation for chatroom