added api to tell resource definitions