BasePath parameter, fixes #4