new detection system for multiblock layout.