split directives into separate files