changed chat message event to MSG and implemented disconnect/connect events