basePath resolving simplification