command is generated properly