fix how submodules are loaded