chat.cgi cleanup