add detector class, dev test working