finished the CGI module