attempts to fix cgi script