update digest at the end
more logging during delete