fix support for submodule