remove unused cmd_check