adding -x to the cgi so I can see debug output to find out why it is failing