create chhild scopes for directives