took the module hook example and put it as extension