focus and flash API