added debug option to set curl to verbose