if debugging, set the debug flag in LWP::UserAgent too