implement periodic sync