add -q for check_cmd