work updates, deal with ref length