hooks for package installation