add patch for cli logging