bb cleanup; layout bounding box; other layout improvements