add resource to kobj