dont segfault and die if no path matches are found