better fallback handling for duplicate key insertions