updates to simple chat sample