add log, cgi function