removing unsupported directives