fixed get resources hook