get_staging_max
staging = get_staging_max();
if (end > get_staging_max())
new_base = get_staging_max();