slightly better header detection; now reporting elapsed time