add Package.on_use function.