updated the client API