resolve expands and scope in resource