add check command function

version1.0