cgi import functions