remove comments, convert to cgi