remove remaining references to global getPaths function