refine update script a bit