hopefully working update script