refactoring client construct, handle guzzle parameters