flatten dictionaries and extract