changes to allow generation of merkle root