removed dead code and commented in chat server code