handle resource types