changes to client.php