rename layouts, resolve names clash