replaced guzzle for native curl