basePath added, closes #292