operations on nested dicts