require CGI in lib