fix CLI validation