it uses name instead of resource