update cgi script