restructure directives