standardize setFlash