add resource functionality