document new Directive API