detect and reset on sync