added basePath option