adjust basePath