update the new Command api framework