An attempt to be smarter about "safe" paths