towards completing main fn to mine the fptree [ci skip]