core: rename updateShortest and add variable to skip this method