moving miner_pool to a constant. fixing bugs