allow specification of basePath