fix: write timeseries appropriately