updated demo for use with Chat Server