so, there is still an issue with the dict_check function. I have a test file that seems to work fine-ish, though.