print header correctly for versions >= 68. eliminate extra local array usage from flags printing. several cleanups.