modifying commands works properly