sync with flash