temporary change to applyDirective