edit check: getcmd instead of getvar