prepare hooks for installation