modified flash helper