notes: allow merging from arbitrary references