add command decide logic