added forceFlash option