updated the submodule loading method