better handling of no path found