added functionality to get resources by category