add thread and chat