added the ability to inject parent directives