flag added to sync two pi