applying directives in various formats