how submodule get registered