can we add the logger functionality here to log that the export format was not a valid one