prepare to debug cgi