add chat functionality by woye