add resource.