change threadcomm to a submodule