make set.update atomic