handle resource roots