remove some unused directives