reverted 3d22e3c1: distance.php is old stuff
updates #248