update the auto update code