fixing the batch converter to match the new API.