query/update nested dicts with selectors