first implementation of patient sync