design the cgi script