basePath added, solves #292