eliminate the temporary hack for merge()
thread state in join
cleanup