basePath resolving