add multithread option