more robus logging fo toc migration script