merged usefull features from islive-chat