added some thread commands