miner.php - speed up formatting and allow calc on gen fields