move submodule setup to top