adding leafwalk and nearersourcepoint