before hooks into submodules