update basePath