cleaned server and changed chathandeling