changed dets to use .detb instead