cleanup security directives