up: direct use cmd instead of var