files and values are now flattened in result dicts