working prototype of cgi script