update CGI script