final update, use flock!