detect hooks