chatdemo modification