mining
miner small refactoring