reorg resource loading