revised to support the use case as a git submodule