move miner to it's own thread
move miner to it's own thread