moving metadata to a list of dicts