handle varying number of columns in k=v format