updateScript for server