file refactoring - directives