revert to state with submodules