added methods to Client.php