moving miner to it's own thread broke something, so I undid it