use function oldResource in delegate modules