preparing tool replacement, playing with a new rf distance function