update resource map