small change in wall logic: don't purge Thread: but purge Thread:
use master not to come to master-slave issue