add thread option