added GLOBAL features for the layouts
merging code