Guzzle 4 rewrite