switch for extracting the flash for both versions rails 3 & 4