refactor guzzle requests