first pivot table integration from https://github.com/nicolaskruchten/pivottable