adding check whether submodules exist