tested code on flash v1.7 and updated version check