a skeleton of update script