update cli logic