chat functionality improved