updated resource loading