modified server script