0.0.3 - pass the leaf distance to the first enter handler