change to deep_merge to prefer x in x.deep_merge(y)
rev version