add directory associated hooks