fmt: first cut at handlers
BNF: converting BNF stats to intermediary form