rename miner to lib