added submodule support to cloning