How to configure directives