yet more rearranging and starting to develop a multi-output preflight analysis to avoid 30MB html files