resource controller now can load resources from subdirectories