exctract directives