added guzzle handler as parameter