fix funcpaths