chat funtionality working-ish