preliminary version of chat