added check to catch missing .flash headers