correctly rejects paths that are too long