separate thread for chat core