agignore submodules, unify e command into a function