correctly handle different epiquery output formats