add #scoped for copying scopes