added path length and path search resetting