do the right transformation of the namespace for hooks