fix namespace for hooks