add cgi interface