update for flashmagic work better