update guzzle constructor to new style