split directives into files