added resilance for tcp chat