take out basePath