chat server with naive implementation