added chatserver, app hangs on quit