added logging to miner.go