use curl instead of wrapper class