split directives to a single file