updates to updateDirectives (perf)