make the chat example work