setup code for following a hike