added flash if it is missing