added flash vesrion check function