improvement getBasePathSelector()