loading resources corrected