move directives into their own file and log output as they are applied