dependency hooks for linking