added som debug info
added output from curl in debug mode