changed hiding threads mechanism