1.cli work in thread