move generated submodule code to bottom