bugfix to detector and added roof