updated server script