updated client to use diff