Changing method of loading resources to be more robust and prevent redundant resources