U: add attribute 'dir' to default layout