closed directive scopes