chat working with some bugs