using injected classloader to load resources