changed it to output xml via cgi