update resource dir