aggregateDataset now takes filename instead of array