inject index for add method.
add keypath to id, so that it was override.