made the layout matching more configurable and added a check to abort layout control ID scanning if no ID map is available anyway