prev commit (49317d63fb9c98121b92475001de966be3c26a3b) broke calling getPaths with a null path, which really should be refactored anyway