allow user disable segments

What is the reason behind checking all parents directories? This seems inefficient.