support for Function and ScopeFunction