few improvements to dicts