remove CGI usage

Not worth the complexity.