add directive name again as attribute for replace directives