fix for cgi