add partial resource loading support