remove cgi dependency