preferFlash in the right place