workaround for different CGI versions