workign on external directives