Cgi adaptation