adds attribute directives