adapt update script