changed return value of client to a future.