refactoring Remote to Miner