remove user defined directives