original pgbadger as changed by darold 2 days ago