code for data sync support