simplify path discovery