handle named scopes (like upstream)