updated client to work properly