samples updated for error handling in client's methods