better forking for update script