update with directives