update spawn script