remove global directives