install hook