before migrate and submodule