draft documentation on upsertr