added support for directives be minified without breaking the code