check for hook before installing