updated chatdemo