changed souts in client to callbacks from server