[bug] premature end of script headers

I think printing the headers was causing trouble