better cleaning of submodules