add getAllPaths, and code formatter