miner summary tables, misc refactoring