change arg startPath to basePath