added possibility to get resources by name