wiring up resource-loading