fix race and spec functionality on cd_module