move rmerge to kits.map and make it handle nils as empty maps