added details to cmd_up, cmd_down and cmd_state