processDataset now returns the operatesOn map and logging added