support onResourceLoad