submodule collector monkey patch