lightest_path and at_distance are working