support for 'rotate' and 'layout'