updated client api