added the cmd_stack