base of update script