fixed cgi script