add debug output
work with older versions of requests