separated user sync and patient sync