remove a temporary file
replace "thread_master" with "master_thread"
remove a DEBUG message