refactoring module to auto set the hookModule to the package that is currently running