added flatten and diff to config POC