flash functions soould now operate correctly