adding flash, unfixed errors