add isFlash in flash service