add join thread option