add state check shell