moved Scope to core