update resource loading