revert to serdar's deep_merge de-dup version