add detector thread