clean up dict_extract, although not sure why it's needed