changed hiding threads mechanism v2