update resource key