added a guard against too long paths