implement config.cgi completely