write unreplaced keys as extra values