missing bool value meant the flash updates stopped early
for some reason, the code just doesn't give the right answer