updated api client and require guzzle