added getThat method to resource