fixing flash setup