beginnings of the chat part