redid miner.go