update command logic to degug.