handle sync flushes