fix cli cmd errors